package com.jiazhong.cloud.example.student.student.feign;

import com.jiazhong.cloud.example.student.commons.bean.School;
import com.jiazhong.cloud.example.student.commons.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "cloud-example-student-school", path = "/school")
public interface SchoolFeign {
    @GetMapping("/find_id/{id}")
    JsonResult<School> findSchoolById(@PathVariable("id") String id);
}
